Requirements javascript files reorganized and refactor applied