Bug fixes

Fix bug with handlebar templates and netbeans autoformatting (use div
tags instead of script tags for them).