doh stupid JS