Updated JS to version 3.1.0. [Close #9]