moved old javascript legacy stuff into dir and made exceptions get caught and printed