Removing inline JS, moving to external file