Changed js to try to fix problems.