javascript compile