give javascript what it wants