added javascript features