added main for use in browserify