Javascript tap file parser