Remove final JSLint errors

By using forward declarations