put some functions in other javascript files for better organization and structure