coding the js app module