simple course work of js file