Proper JSON applications and client-side JS