Update Using Javascript sample code in docs to use proper directory structure