Implement Javascript as per README file