Layout finished

layout has javascript and full iamge support