Move omx-specific javascript to separate file