JASON parser implemented with Javascript