JS encap by rcotrina94