javascript is run only for single time when pageloads if you want to access javascript in the update panel then you need to use this
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequestHandler)
Sys.WebForms.PageRequestManager.getInstance().remove_endRequest(endRequestHandler)
GO TO THIS URL
Link