fix js arrow and redbar issues