hasPrefix should be in the else statement
ignore generate js