Fixed some js to reflect chages.