misc changes -- probably switching from java to js mode