javascript: Fix aliases definition