additions to js stuff