fixed some JS