Apparently Ruby methods don't apply in Javascript