Established future-proof detection of reenabling JavaScript

Created timestamp comparison between setInterval and setTimeout to
determine if JavaScript is reenabled. Moved the original version to a
seperate file.
Fixed commit error