javascript static method in class