using a file reader now
pushed the js in a file