Simplified client-side JavaScript