compile metascript code to js before evaluation