fixing up js and adding app