JavaScript enhance