Change dirtectory of Javascript.