Added possibility for setting show/hide javascripts. Sample 3 is now working.