CSS and JS are moved to separate files.
Limit time per frame to work properly when browser is busy.