reworked parse functions in application js
merged new parsing and ajax