Fix small bugs in JSApi.
For every class defined with JSApi attribute , remove first part of the full name.
Example:
[JSApi] module Api { A : int; }
def x = Api.A; ==> var x = A;

Remove old code.