moving js to assets and downcasing search param