Added javascript support and basic layout