better js example