javascript added to helper methods