add resume, add noscript tag, refactor a bit