Common scalatags code generating html on server and client