formatting js so autocomplete knows what to do with it