Fix the relative paths of assets files

Fix the paths of assets files when the base contains special chars.
Optimisation : regex is removed.
Hook plugin

Introduction to the ajax framework ‘Hook’