merged html and js

merged into a single html and single js file
fixed copyright typo
added credentials proper handling