added percentages js functions, added underscore