Moved inline JS to their own files