fixes javascript compile issues