Fixed minor js issues.