Fixing several issues with CSS/JS registration inside WordPress