[wip] - Refactor application JavaScript & add transition