Fix javascript warning