Updated javascript because it was using camel case and I changed it to use normal