Added stuff for dealing with JS.