Detached js code from html code