Add missing semicolons. Add missing radix for parseInt