fixed missing js in register