Completed inlining and changes to JS compilation