js functions in seperate file