Maybe you want to shift inline scripts to a js file. It is quite easier to maintain.