javascript: split main js file into several item-specific ones