moved css/js out of main html file
refactored ladder generated