create a base js for application