spark javascript changes