Added support for inline functions.
fixed deprecated JavaScript 'for each' loops
starting to add support for var; not done yet