Move Inline js to external files