Add ScriptJS to server side and sanitize database input