Clean up debugging from JS files.
Fixed dashboard JS errors.