js code in separate file