move javascript to assets