simple JavaScript console thingy, made while learning the Android Fragments api; really ugly code