Updates to make our client-side code work in WP