Modified HTML and Javascript API syntax

- "target" -> "data-hspek"
- "window.open()" -> "hspek.open()"
- "window.close()" -> "hspek.close()"