Moved the javascript to a separate file.

Signed-off-by: retep998 <retep998@verizon.net>