Now I separated the functions to different files.
Added grunt