Separated independent js code to own file