Added JS quirks
Fixed some issues thanks to Soedar proofreading