Fixed: Minor JS bugs.