Cleaned up Javascript

because I forgot semicolons like an idiot