#50 fixed the javascript url and moved script to body to access document
object.