Fixed some js incoherences.