Added java script to registration