Attempted to fix JS for reader