trying simple js code