Some JS additions