Remove duplicated inline code

 - Remove code duplication for easier maintenance
 - Remove inline scripts, which e.g. allows minifying in a later
   step