examples: first version initializing js file