unicorn and fixed js bug