updated server to handle JS traces