JSHinted JavaScript code