tweeked example js