remove obsolete javascript