server: Fix JavaScript lint issues