Normalize line endings javascript spec test to make it platform independent.
Cleaned up a missing semicolons, unused variables, undeclared variables.