added some js-stuff