add custom snippet for javascript