updated js guidelines