removed superfluous code from .js