In the interest of providing an alternate from the while loops already given:
var f = (a, b, c, m) => (b + c >= m) ? a : f(a.concat([b + c]), c, b + c, m);
var fib = f([1, 1], 1, 1, 10);
Less pretty version for golfs sake (4843 chars)
m=10;a=[];fora=[];for(b=c=1;c<=m&&ab=c=1;c<=10&&a.push(b,c);c+=b+=c);aa