fix js registartion