Clean JS code of access