Moved inline JS to bottom of file