ws helper template now checks for require.js