Keep compatibility with Java 7 and 8

The application built with JDK 8 fails (no audioFs instance in JavaScript).
This change will make it more friendly for JDK 7/8 users.