Remove inline js script code.

Inline java script is not "compatible" with the new CSP policies. Thanks.