splitted js code into sub modules