Moved inline js to included file