setting up js app