Created timeout.js

Create the timeout object via javascript as a variable.
In future commit will make it more robust.