get rid of unnecessary js