inline javascript is a pain, is it possible to move that to a proper file? Keep only data here.