fixing code #1
finishing up javascript