Fixed compilation of invalid JS source