new java script implicit flow code sample