Added Javascript version

Converted jQuery to a plain old Javascript version with no dependancies.