Create problem_1_javascript.js

I kept messing up because I was not setting "sum" as a global variable.  I was instead putting it inside the loops.  Once I declared it above the loops it went fine.