add poltergeist to test javascript
modify template_spec and simulate building layout