Merge pull request #25 from tsapeta/0.3.x

merge 0.3.x into 0.4.x
added $.scripts object
add shortcut for $.scripts.define
increased version to 0.4.0
Merge pull request #26 from tsapeta/0.4.x

release v0.4.0