Creating a new Javascript application Base