Added projection expression and adapted javascript compilation to new runtime functions