Remove inline js.
Update for OC7