Fixing javascript error and updating stylkes