javascript functions in separate file actions.js