additions to js