updated javascript registration