Fixed small JS redundancy