Solving js issues.