compile for browser