Polished Travis-CI handling

This is attempt to fix Travis-CI builds to work with javascript scenarios.