added commands to JS sample file