fixed indetation; remove code not used; put JS on bottom page