cleaning up assets file, adding javascript timer and conditions for states on show