fix code style
Auto detect whatever scripts must be inline or not #1