Established a javascript module for the application