JS: Removing a few compiler warnings