created separate file *.js