Move scripts to separate file.
Enqueue scripts.