moved js into client folder