Task completed :-
1.) There was no mode by default: Initialized it to "normal".
2.) Refactored the code in JS files.
3.) Used JS inbuilt functions where possible.
4.) Minor UI fixes.
5.) Removed unused variables.
6.) Added copyrights and author.
7.) Reduced number of JS functions that were unnecessary.
Pending :-
1.) Screen resizing (I have started but need little guidance)
2.) Virtual Keyboard implementation (I am planning to do it after screen resizing)