Added basic usage for Javascript API