code refactoring - fixed indentation in JS tests