Build system for browser and AMD version