organized js files in more logical manner