Added code to test Javascript