JavaScript additions