js updated to just what's used