Divided functions into multiple .js files