Making Things Smart: Easy Embedded JavaScript Programming